package com.sservice.model.dao;

import com.sservice.model.entity.OrderPaper;

/**
 * 订单合同
 */
public interface OrderPaperMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderPaper record);

    int insertSelective(OrderPaper record);

    OrderPaper selectByPrimaryKey(Integer id);

    OrderPaper selectByOrderId(String orderId);

    int updateByPrimaryKeySelective(OrderPaper record);

    int updateByPrimaryKeyWithBLOBs(OrderPaper record);

    int updateByPrimaryKey(OrderPaper record);

    /**
     * 根据订单ID和订单类型获取合同
     *
     * @param record
     * @return
     */
    OrderPaper selectByOrderIdAndOrderType(OrderPaper record);
}